package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：AuctionInfoParser   
* 类描述：拍卖会详情实体类+解析   
* 创建人：耿卫斌   
* 创建时间：2017-3-9 下午4:31:59   
*
 */
public class AuctionInfoParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;//拍卖会id
	private String jid;//机构id
	private String title;//拍卖会名称
	private String imgurl;//拍卖会logo
	private String preview_start_time;//预展开始时间
	private String preview_end_time;//预展结束时间
	private String preview_address;//预展地址
	private String auction_start_time;//拍卖开始时间
	private String auction_end_time;//拍卖结束时间
	private String auction_address;//拍卖地点
	private String logo;//机构LOGO
	private String seller_name;//机构名称
	private int artistNum;//艺术家数量
	private String artists;//艺术家
	private String comNum;//评论数
	private String shareurl;//分享链接
	private String memo;//分享描述
	private int height;//图片高度
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		jid = obj.optString("jid");
		title = obj.optString("title");
		imgurl= obj.optString("imgurl");
		preview_start_time= obj.optString("preview_start_time");
		preview_end_time= obj.optString("preview_end_time");
		preview_address= obj.optString("preview_address");
		auction_start_time= obj.optString("auction_start_time");
		auction_end_time= obj.optString("auction_end_time");
		auction_address= obj.optString("auction_address");
		logo= obj.optString("logo");
		seller_name= obj.optString("seller_name");
		artistNum= obj.optInt("artistNum");
		artists= obj.optString("artists");
		comNum= obj.optString("comNum");
		shareurl= obj.optString("shareurl");
		memo= obj.optString("memo");
		height= obj.optInt("height");
	}
	public String getId() {
		return id;
	}
	public String getJid() {
		return jid;
	}
	public void setJid(String jid) {
		this.jid = jid;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getPreview_start_time() {
		return preview_start_time;
	}
	public void setPreview_start_time(String preview_start_time) {
		this.preview_start_time = preview_start_time;
	}
	public String getPreview_end_time() {
		return preview_end_time;
	}
	public void setPreview_end_time(String preview_end_time) {
		this.preview_end_time = preview_end_time;
	}
	public String getPreview_address() {
		return preview_address;
	}
	public void setPreview_address(String preview_address) {
		this.preview_address = preview_address;
	}
	public String getAuction_start_time() {
		return auction_start_time;
	}
	public void setAuction_start_time(String auction_start_time) {
		this.auction_start_time = auction_start_time;
	}
	public String getAuction_end_time() {
		return auction_end_time;
	}
	public void setAuction_end_time(String auction_end_time) {
		this.auction_end_time = auction_end_time;
	}
	public String getAuction_address() {
		return auction_address;
	}
	public void setAuction_address(String auction_address) {
		this.auction_address = auction_address;
	}
	public String getSeller_name() {
		return seller_name;
	}
	public void setSeller_name(String seller_name) {
		this.seller_name = seller_name;
	}
	public String getArtists() {
		return artists;
	}
	public void setArtists(String artists) {
		this.artists = artists;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public int getArtistNum() {
		return artistNum;
	}
	public void setArtistNum(int artistNum) {
		this.artistNum = artistNum;
	}
	public String getComNum() {
		return comNum;
	}
	public void setComNum(String comNum) {
		this.comNum = comNum;
	}
	public String getShareurl() {
		return shareurl;
	}
	public void setShareurl(String shareurl) {
		this.shareurl = shareurl;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public AuctionInfoParser() {
		super();
	}
	public AuctionInfoParser(String id, String jid, String title, String imgurl, String preview_start_time, String preview_end_time, String preview_address, String auction_start_time, String auction_end_time, String auction_address, String logo, String seller_name, int artistNum, String artists, String comNum, String shareurl, String memo, int height) {
		this.id = id;
		this.jid = jid;
		this.title = title;
		this.imgurl = imgurl;
		this.preview_start_time = preview_start_time;
		this.preview_end_time = preview_end_time;
		this.preview_address = preview_address;
		this.auction_start_time = auction_start_time;
		this.auction_end_time = auction_end_time;
		this.auction_address = auction_address;
		this.logo = logo;
		this.seller_name = seller_name;
		this.artistNum = artistNum;
		this.artists = artists;
		this.comNum = comNum;
		this.shareurl = shareurl;
		this.memo = memo;
		this.height = height;
	}
	@Override
	public String toString() {
		return "AuctionInfoParser{" +
				"id='" + id + '\'' +
				", jid='" + jid + '\'' +
				", title='" + title + '\'' +
				", imgurl='" + imgurl + '\'' +
				", preview_start_time='" + preview_start_time + '\'' +
				", preview_end_time='" + preview_end_time + '\'' +
				", preview_address='" + preview_address + '\'' +
				", auction_start_time='" + auction_start_time + '\'' +
				", auction_end_time='" + auction_end_time + '\'' +
				", auction_address='" + auction_address + '\'' +
				", logo='" + logo + '\'' +
				", seller_name='" + seller_name + '\'' +
				", artistNum=" + artistNum +
				", artists='" + artists + '\'' +
				", comNum='" + comNum + '\'' +
				", shareurl='" + shareurl + '\'' +
				", memo='" + memo + '\'' +
				", height=" + height +
				'}';
	}
}
